package lib.bone.access.module.dict.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lib.bone.access.validator.IsAwardType;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("教学科研获奖词典更新DTO")
public class NepuAwardDictUpdateDTO {

    @NotBlank(message = "教学科研获奖词典ID不可为空")
    @ApiModelProperty(value = "教学科研获奖词典ID",name = "id")
    String id;

    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;

    @IsAwardType
    @ApiModelProperty(value = "获奖类型",notes = "可选教学获奖,科研获奖")
    String awardType;

    @NotBlank(message = "获奖名称不可为空")
    @ApiModelProperty("获奖名称")
    String awardName;

    /**
     * 获奖
     */
    @NotBlank(message = "获奖等级不可为空")
    @ApiModelProperty(value = "获奖",name = "一等奖，二等奖，金奖，银奖等")
    String awardGrade;

    /**
     * 获奖级别
     */
    @NotBlank(message = "获奖级别不可为空")
    @ApiModelProperty(value = "获奖级别",notes = "A,B,C")
    String awardLevel;

    /**
     * 获奖对应工作量
     */
    @DecimalMin(value = "0",message = "最小工作量大于0")
    @ApiModelProperty(value = "工作量Min",notes = "获奖对应的最小工作量")
    Double workloadMin;
    @DecimalMin(value = "0",message = "最大工作量大于0")
    @ApiModelProperty(value = "工作量Max",notes = "获奖对应的最大工作量")
    Double workloadMax;
}
